package project.messagestack.GUI;


import android.content.Intent;
import android.os.Bundle;
import android.preference.*;
import android.preference.Preference.OnPreferenceClickListener;
import project.messagestack.R;
import project.messagestack.network.facebook.FacebookConnect;

public class Preferences extends PreferenceActivity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.preferences);
    Preference customPref = (Preference) findPreference("mailsettingKey");
    customPref.setOnPreferenceClickListener(new OnPreferenceClickListener() {

      public boolean onPreferenceClick(Preference preference) {
        Intent i = new Intent(getApplicationContext(), MailList.class);
        startActivity(i);
        return true;
      }

    });
  }

}